Xbasic

A5_GETDATEHTML Function

Syntax

Selected_Date as C = a5_GetDateHTML(C title ,C default_date ,C style [,L nocaption [,C xdialogPositionCommand ]])

Arguments

Selected_Date

The date selected by the user.

title

Optional. Default = "Calendar". The title of the calendar dialog.

default_date

Optional. Default = current date. The initial date to show selected in the calendar.

style

Optional. The path to and filename of a CSS style.

nocaption

Logical

xdialogPositionCommand

Character

Description

Displays a dialog with a popup calendar rendered using HTML.

Discussion

The A5_GETDATEHTML() function displays an HTML calendar and returns a date value formatted as a character string. The range of years shown is from 1950 to 2050. Note : If you have changed the Xdialog system font setting from its default value, you should use HTML style display. To enable HTML style display, select View > Settings > System > Preferences > Calendar Popup. Select Style and a cascading style sheet from the Value list. If you use the Xdialog style, you should have your Xdialog system font setting at its default value (Tahoma 8 point). To restore the default font setting select View > Settings > System > System Fonts > Restore Default. These settings also affect POPUP.CALENDAR()and UI_GET_DATE_CALENDAR().

Example

? A5_GETDATEHTML("","","")
= "11/15/2004"

Limitations

Desktop applications only.

See Also